package xc.com.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import xc.com.course.domain.CourseBase;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhuolizhong
 * @since 2021-06-03
 */
@Mapper
public interface CourseBaseMapper extends BaseMapper<CourseBase> {
    /**
     * 重写insert方法获取id
     * @param entity
     * @return
     */
    @Override
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insert(CourseBase entity);
}
